package com.my.jli.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName Homework
 * @Description 课后作业实体类
 * @Author MaYu
 * @Date 2022/4/6 18:53
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "tb_homework")
public class Homework {
    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    //题目
    private String title;
    //开始日期
    private Date startDate;
    //截至日期
    private Date endDate;
    //对应教师id
    private Integer tid;
}
